﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace FCP.Data.Migrations
{
    public partial class add_index : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_t_table_panel_table_id",
                table: "t_table_panel",
                column: "table_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_table_filter_field_table_id",
                table: "t_table_filter_field",
                column: "table_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_table_field_filter_field_table_id",
                table: "t_table_field_filter_field",
                column: "table_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_table_field_table_id",
                table: "t_table_field",
                column: "table_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_table_btn_table_id",
                table: "t_table_btn",
                column: "table_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_table_fcp_form_id",
                table: "t_table",
                column: "fcp_form_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_panel_edit_id",
                table: "t_edit_panel",
                column: "edit_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_field_map_detail_edit_field_map_id",
                table: "t_edit_field_map_detail",
                column: "edit_field_map_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_field_map_edit_field_id",
                table: "t_edit_field_map",
                column: "edit_field_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_field_filter_field_edit_field_id",
                table: "t_edit_field_filter_field",
                column: "edit_field_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_field_filter_field_edit_id",
                table: "t_edit_field_filter_field",
                column: "edit_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_field_edit_id",
                table: "t_edit_field",
                column: "edit_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_btn_edit_id",
                table: "t_edit_btn",
                column: "edit_id");

            migrationBuilder.CreateIndex(
                name: "IX_t_edit_fcp_form_id",
                table: "t_edit",
                column: "fcp_form_id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_t_table_panel_table_id",
                table: "t_table_panel");

            migrationBuilder.DropIndex(
                name: "IX_t_table_filter_field_table_id",
                table: "t_table_filter_field");

            migrationBuilder.DropIndex(
                name: "IX_t_table_field_filter_field_table_id",
                table: "t_table_field_filter_field");

            migrationBuilder.DropIndex(
                name: "IX_t_table_field_table_id",
                table: "t_table_field");

            migrationBuilder.DropIndex(
                name: "IX_t_table_btn_table_id",
                table: "t_table_btn");

            migrationBuilder.DropIndex(
                name: "IX_t_table_fcp_form_id",
                table: "t_table");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_panel_edit_id",
                table: "t_edit_panel");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_field_map_detail_edit_field_map_id",
                table: "t_edit_field_map_detail");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_field_map_edit_field_id",
                table: "t_edit_field_map");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_field_filter_field_edit_field_id",
                table: "t_edit_field_filter_field");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_field_filter_field_edit_id",
                table: "t_edit_field_filter_field");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_field_edit_id",
                table: "t_edit_field");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_btn_edit_id",
                table: "t_edit_btn");

            migrationBuilder.DropIndex(
                name: "IX_t_edit_fcp_form_id",
                table: "t_edit");
        }
    }
}
